#ifndef __tool_H
#define __tool_H

#include "cmsis_os.h"

/// @brief ticks转换为毫秒
/// @param ticks
/// @return 毫秒
uint32_t ticks_to_ms(TickType_t ticks);

/// @brief 毫秒转换为ticks
/// @param time_ms

/// @return ticks
TickType_t ms_to_ticks(uint32_t time_ms);

/// @brief 获取系统时间(ms)
/// @return 系统时间
uint32_t get_system_time(void);

#endif
